package edu.unc.comp410.colemangeer.data;

import java.util.List;
import java.util.Set;

import edu.unc.comp410.colemangeer.model.Product;

/**
 * An object / table gateway that connects
 * a running Java program to persistent 
 * storage of data.
 */
public interface IProductGateway extends IPersistentObjectGateway {
	
	/**
	 * @return the single Product with Id == theId
	 *    or null if no such Product
	 */	
	Product getByID( Integer searchID );
	
	/**
	 * @return all Products
	 */
	Set<Product> getAllProducts();
	
	/**
	 * 
	 * @return size of product table
	 */
	Integer getTableSize();
	
	/**
	 * @return all Customers whose name matches theName
	 */
	//Set<Customer> getByName( String theName );
	Set<Product> getByName( String theName );
	
}

